﻿<div class="main">
    <form id="_form" class="form" method="post">
        <div class="form-group">
            <label class="control-label" for="oleName">表名</label>
            <div class="controls">
                <input type="text" maxlength="20" id="oldName" name="oldName" class="form-control" readonly value="@Model" />
                <span class="help-block"></span>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label" for="remark">新表名</label>
            <div class="controls">
                <input placeholder="只能由字母、数字组成，首字符必须英文" type="text" maxlength="20" id="newName" name="newName" data-field="name" class="form-control" data-validate="dataType:'table',nullMsg:'请填写表名！',errorMsg:'表名填写错误',checkUrl:'@Url.Action("CheckExists",new {fieldName="表名",area="Admin" })'" />
                <span class="help-block"></span>
            </div>
        </div>

        <div class="submit-footerbar">
            <label class="control-label"></label>
            <div class="controls">
                <button type="button" class="btn btn-sm  btn-primary ui-pagePost" data-custom-params="url:'@Url.ActionUrl()',callBack:'CallBack',successMsg:''">提交</button>
                <button type="button" class="btn btn-sm btn-default ui-closeDialog">关闭</button>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    function CallBack()
    {
        Msg("修改成功!", function () {
            parent.location.href = parent.location.href;
            CloseDialog();
        })
    }
</script>